Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(demos): Update code demo to use new script import names for generators #7213

Merged
merged 1 commit into from
Jun 27, 2023

Conversation

cpcallen
Copy link
Contributor

The basics

  • I branched from develop
  • My pull request is against develop
  • My code follows the style guide
  • I ran npm run format and npm run lint

The details

Resolves

Fixes errors in Code.checkAllGeneratorFunctionsDefined caused by the breaking change in PR #7150, implementing the .forBlock dictionary.

Proposed Changes

  • Update the demos/code/ demo to use the new import names (e.g. BlocklyJavaScript -> javascript.javascriptGenerator.
  • Fix Code.checkAllGeneratorFunctionsDefined by having it use .forBlocks dictionary.

Behaviour Before Change

Code generation fails with dialog warning about missing generator functions.

Behaviour After Change

Code generation works.

Reason for Changes

Keep code functional and up-to-date.

Test Coverage

Manually tested.

This is mostly just chore updating to the new import names
(e.g. BlocklyJavaScript -> javascript.javascriptGenerator),
but the change to Code.checkAllGeneratorFunctionsDefined is
a necessary fix due to the breaking change in PR google#7150,
implementing the .forBlock dictionary.
@cpcallen cpcallen requested a review from a team as a code owner June 27, 2023 15:52
@cpcallen cpcallen requested a review from maribethb June 27, 2023 15:52
@github-actions github-actions bot added PR: fix Fixes a bug and removed PR: fix Fixes a bug labels Jun 27, 2023
@cpcallen cpcallen merged commit e49c028 into google:develop Jun 27, 2023
@cpcallen cpcallen deleted the fix/demos branch June 27, 2023 16:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants